package org.jeecg.modules.demo.mes.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 订单表
 * @Author: jeecg-boot
 * @Date:   2022-12-01
 * @Version: V1.0
 */
@Data
@TableName("camellia_mes_order")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="camellia_mes_order对象", description="订单表")
public class CamelliaMesOrder implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**下单客户*/
	@Excel(name = "下单客户", width = 15)
    @ApiModelProperty(value = "下单客户")
    private String bookUser;
	/**产品名称*/
	@Excel(name = "产品名称", width = 15, dictTable = "camellia_mes_product", dicText = "name", dicCode = "id")
	@Dict(dictTable = "camellia_mes_product", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "产品名称")
    private String requiredProduct;
	/**需求量*/
	@Excel(name = "需求量", width = 15)
    @ApiModelProperty(value = "需求量")
    private Double orderNum;
	/**订单状态*/
	@Excel(name = "订单状态", width = 15)
    @ApiModelProperty(value = "订单状态")
    private Integer orderStatus;
	/**生产计划ID*/
	@Excel(name = "生产计划ID", width = 15)
    @ApiModelProperty(value = "生产计划ID")
    private String processPlanId;
}
